package edu.nf.dao.impl;


import edu.nf.SQLExecutor;
import edu.nf.beans.annotations.Component;
import edu.nf.dao.DeleteEmpDao;
import edu.nf.utils.SQLExecutorFactory;

@Component("deleteEmpDao")
public class DeleteEmpDaoImpl implements DeleteEmpDao {


    @Override
    public void deleteEmp(String empid) {
        String sql = "UPDATE EMP_INFO SET EMP_STATUS=0 WHERE EMP_ID = ?";
        SQLExecutor se = SQLExecutorFactory.getSQLExecutor();
        se.executeUpdate(sql,empid);
    }
}
